package FirstExampe.last;

public class NewMovie extends AMovie {

	public NewMovie(String _title) {
		super(_title);
	}

	@Override
	public double amount(int daysRented) {
		double thisAmount = 0;
		thisAmount += daysRented * 3;
		return thisAmount;
	}

	@Override
	public int frequent(int daysRented) {
		if (daysRented > 1) {
			return 2;
		}
		return 1;
	}
}
